//
//  ImageViewsViewController.m
//  TestByFF
//
//  Created by hanxifeng on 16/10/20.
//  Copyright © 2016年 haixu. All rights reserved.
//

#import "ImageViewsViewController.h"

@interface ImageViewsViewController ()

@end

@implementation ImageViewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *array = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1"], [UIImage imageNamed:@"2"], [UIImage imageNamed:@"3"], [UIImage imageNamed:@"4"], [UIImage imageNamed:@"5"],[UIImage imageNamed:@"6"], [UIImage imageNamed:@"7"], [UIImage imageNamed:@"8"], [UIImage imageNamed:@"9"], [UIImage imageNamed:@"10"], nil];
    UIImageView *temp = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
       temp.animationImages = array;
    temp.animationDuration = 3;
    [temp startAnimating];

    [self.view addSubview:temp];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
